DAT210x - Programming with Python for DS

Module3 - Lab2


In [ ]:
import pandas as pd
import matplotlib.pyplot as plt
import matplotlib

In [ ]:
# Look pretty...

# matplotlib.style.use('ggplot')
plt.style.use('ggplot')

Load up the wheat seeds dataset into a dataframe. We've stored a copy in the Datasets directory.


In [ ]:
# .. your code here ..

Create a 2d scatter plot that graphs the area and perimeter features:


In [ ]:
# .. your code here ..

Create a 2d scatter plot that graphs the groove and asymmetry features:


In [ ]:
# .. your code here ..

Create a 2d scatter plot that graphs the compactness and width features:


In [ ]:
# .. your code here ..

BONUS

After completing the above, go ahead and run your program Check out the results, and see what happens when you add in the optional display parameter marker with values of either '^', '.', or 'o':


In [ ]:
# .. your code here ..

In [ ]:
# Display the graphs:
plt.show()

In [ ]: